package com.bestcem.xm.member.service.param;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.bestcem.xm.member.entity.mysql.MemberEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.Collection;
import java.util.List;

/**
 * 联系人查询条件
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/9/25
 */

@Getter
@Setter
public class SelectMemberDynamicSql {

    private String orgId;

    /**
     * 联系人id集合
     */
    private Collection<String> memberIds;

    private Integer memberType;

    private Integer status;

    /**
     *
     */
    private String eqSearch;

    /**
     * 模糊查询
     */
    private String search;

    /**
     * 分组序号
     */
    private Long groupSeq;

    /**
     * 用户组织id
     */
    private String userGroupIds;

    /**
     * 用户叶子组织id
     */
    private List<String> userLeafGroupIds;

    /**
     * 是否管理员
     * 管理员不校验组织层级
     */
    private Boolean admin;

    /**
     * 动态条件 作为子查询你
     */
    private Wrapper<MemberEntity> wrapper;

    private Boolean desc;

    private String orderBy;

    private Integer start;

    private Integer size;
}
